package com.kujawnode.service;

import com.github.pagehelper.PageInfo;
import com.kujawnode.model.TUser;
import com.kujawnode.model.TUserVO;
import com.kujawnode.query.UserQuery;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @version 1.0
 * @Author kujaw
 * @Date 2025/7/9 13:58
 * @注释
 */
public interface UserService extends UserDetailsService {

    PageInfo<TUser> getUserByPage(Integer current);

    TUserVO getUserDetail(Integer id);

    int addUser(UserQuery userQuery);

    int updateUser(UserQuery userQuery);

    int batchDeleteUser(List<Integer> ids);

    int deleteUserById(Integer id);

    List<TUser> getOwner();
}
